// 先引入经过自定义全局封装的 axios
import request from "/@/utils/request";

/**
 * 用户登录
 * @param params 要传的参数值
 * @returns 返回接口数据
 * @method teacherSignIn 教师登录
 * @method studentSignIn 学生登录
 * @method administratorSignIn 管理员登录
 */
export function teacherSignIn(params: object) {
  return request({
    url: "teacherlogin",
    method: "post",
    data: params,
  });
}

export function studentSignIn(params: object) {
  return request({
    url: "stulogin",
    method: "post",
    data: params,
  });
}


export function administratorSignIn(params: object) {
  return request({
    url: "adminlogin",
    method: "post",
    data: params,
  });
}

